<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="jquery-1.11.3.min.js"></script>
 </head>
 <body>
     <div>
	    <h1>aaaaaaaaaaaaaaaaa</h1>
		<h1>bbbbbbbbbbbbbbbbb</h1>
		<h1>ccccccccccccccccc</h1>
		<h1>ddddddddddddddddd</h1>
	 </div>
	 <div>
	    <h1>eeeeeeeeeeeeeeeee</h1>
		<h1>fffffffffffffffff</h1>
	 </div> 
	 <div>
	    <h1>ggggggggggggggggg</h1>
	 </div>
 </body>
 <script>
    //$('div h1:nth-child(1)').css({'color':'red'});
	//$('div h1:first-child').css({'color':'red'});
	//$('div h1:last-child').css({'color':'blue'});
	$('div h1:only-child').css({'color':'yellow'});
 </script>

</html>
